
package com.bear.cmcc.NetTestHTTP.component;

import com.bear.cmcc.NetTestHTTP.NetworkTestApp;

public class CityBean {

    /**
     * 城市名称
     */
    private String city_name;

    private String city_code;

    /**
     * 信号强度。
     */
    public int signalStrength = -69;// 填写固定值

    // /**
    // * 电平值。
    // */
    // public int electricalLevel=0;

    /**
     * 掉线率
     */
    public String droppingRate = "0%";

    /**
     * 接通率
     */
    public String comRate = "100%";

    /**
     * 用来标识当前手机所在的城市，是否是当前这个城市。
     */
    private boolean isCurrentCity;

    /**
     * 2G 网络情况，下载速度（kb/s）。
     */
    public int downSpeed = 0;

    public int getDownSpeed() {
        return downSpeed;
    }

    public void setDownSpeed(int downSpeed) {
        this.downSpeed = downSpeed;
    }

    public String getCity_name() {
        if (city_name != null) {// 所有城市名称 去掉 市 这个单位
            return city_name.replace(NetworkTestApp.getApp().getWantDeleteCityUnil(), "");
        }
        return city_name;
    }

    public void setCity_name(String city_name) {
        this.city_name = city_name;
    }

    public int getSignalStrength() {
        return signalStrength;
    }

    public void setSignalStrength(int signalStrength) {
        this.signalStrength = signalStrength;
    }

    // public int getElectricalLevel() {
    // return electricalLevel;
    // }
    //
    // public void setElectricalLevel(int electricalLevel) {
    // this.electricalLevel = electricalLevel;
    // }

    public String getDroppingRate() {
        return droppingRate;
    }

    public void setDroppingRate(String droppingRate) {
        this.droppingRate = droppingRate;
    }

    public boolean isCurrentCity() {
        return isCurrentCity;
    }

    public void setCurrentCity(boolean isCurrentCity) {
        this.isCurrentCity = isCurrentCity;
    }

    public String getComRate() {
        return comRate;
    }

    public void setComRate(String comRate) {
        this.comRate = comRate;
    }

    public String getCity_code() {
        return city_code;
    }

    public void setCity_code(String city_code) {
        this.city_code = city_code;
    }

    @Override
    public String toString() {
        return "CityBean [city_name=" + city_name + ", signalStrength=" + signalStrength
                + ", droppingRate=" + droppingRate + ", toString()=" + super.toString() + "]";
    }

}
